﻿using System;
using Citi.ProcureToPay.Domain.Utils;
using System.Collections.Generic;

namespace Citi.ProcureToPay.Domain
{
    public partial class Entry
    {
        public static readonly Dictionary<string, string> ExcelColumnMappings = new Dictionary<string, string> { 
                { "[Corp]", "[Corp]" },
                { "[Account]", "[Account]" },
                { "[Expense]", "[Expense]" },
                { "[Local Usage]", "[LocalUsage]" },
                { "[Affiliate]", "[Affiliate]" },
                { "[Future 2]", "[Future2]" },
                { "[Entity]", "[Entity]" },
                { "[Description]", "[Description]" },
                { "[Source]", "[Source]" },
                { "[Category]", "[Category]" },
                { "[Gl Batch Name]", "[GlBatchName]" },
                { "[Vendor]", "[Vendor]" },
                { "[Invoice]", "[Invoice]" },
                { "[InvoiceDateConverted]", "[InvoiceDate]" },
                { "[Description1]", "[InvoiceDescription]" },
                { "[DateConverted]", "[Date]" },
                { "[Amount DR]", "[AmountDR]" },
                { "[Amount CR]", "[AmountCR]" },
                { "[Entered DR]", "[EnteredDR]" },
                { "[Entered CR]", "[EnteredCR]" }
            };

        public void DeleteData(DateTime date)
        {
            Context.Instance.DeleteEntries(date);
        }
    }
}
